package ca.usherbrooke.domus.sipnmove2.sip;

import javax.sip.DialogTerminatedEvent;
import javax.sip.IOExceptionEvent;
import javax.sip.RequestEvent;
import javax.sip.ResponseEvent;
import javax.sip.SipListener;
import javax.sip.TimeoutEvent;
import javax.sip.TransactionTerminatedEvent;

import ca.usherbrooke.domus.sipnmove2.model.phone.Phone;

/**
 * Controller that manage Calls objects in function of SIP messages
 */
public class SipCallController implements SipListener {

	/**
	 * Sip register
	 * 
	 * Provide simple access to SIP features
	 */
	private SipRegister sipRegister;

	/**
	 * Phone
	 */
	private Phone phone;

	/**
	 * Default constructor
	 * @param sipRegister
	 */
	public SipCallController(SipRegister sipRegister)
	{
		this.sipRegister = sipRegister;
	}
	
	@Override
	public void processDialogTerminated(DialogTerminatedEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void processIOException(IOExceptionEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void processRequest(RequestEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void processResponse(ResponseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void processTimeout(TimeoutEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void processTransactionTerminated(TransactionTerminatedEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	/**
	 * @return the phone
	 */
	public Phone getPhone() {
		return phone;
	}

	/**
	 * @param phone the phone to set
	 */
	public void setPhone(Phone phone) {
		this.phone = phone;
	}

}
